<?php

namespace App\Models;

/**
 * PlayerUser Model.
 */
class PlayerUser extends Model
{
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = [
        'realname',
        'user_id',
        'league_id',
        'cup_id',
        'name',
        'age',
        'number',
        'height',
        'weight',
        'strength',
        'level',
        'site',
        'join_season',
        'join_date',
    ];
    
    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = ['created_at', 'deleted_at', 'updated_at'];

    /**
     * 关联user
     */
    public function user()
    {
        return $this->belongsTo('App\Models\User');
    }
}
